package com.study.entity.db3.vo;

import java.util.ArrayList;
import java.util.List;

public class ResourceVO {
	/**
	 * 主键
	 */
	private Long resourceId;

	/**
	 * 父id
	 */
	private Long parentId;
	/**
	 * 资源名称
	 */
	private String resourceName;
	/**
	 * 请求地址
	 */
	private String url;

	/**
	 * 是否选中（回显）
	 */
	private boolean checked;

	/**
	 * 子资源
	 */
	private List<ResourceVO> subResources = new ArrayList<>();

	public Long getResourceId() {
		return resourceId;
	}

	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<ResourceVO> getSubResources() {
		return subResources;
	}

	public void setSubResources(List<ResourceVO> subResources) {
		this.subResources = subResources;
	}
}
